<div class="box">
  <div class="top"><img src="catalog/view/theme/wenlong/image/bestsellers.png" alt="" /><?php echo $heading_title; ?></div>
    <div class="middle">
        <?php if ($products) { ?>
        <table cellpadding="2" cellspacing="0" style="width: 100%;">
            <?php foreach ($products as $product) { ?>
            <tr>
                <td valign="top" style="width:1px">
                    <?php if ($product['thumb']) { ?>
                <td valign="top" style="width:1px">
                    <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a>
                </td>
                <?php } ?>
                <td valign="top">
                    <a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
                    <br/>
                    <?php if ($product['price']) { ?>
               <span style="font-size: 11px; color: #900;">
                <?php if (!$product['special']) { ?>
                   <?php echo $product['price']; ?>
                   <?php } else { ?>
                   <span class="price-old"><?php echo $product['price']; ?></span> <?php echo $product['special']; ?>
                   <?php } ?>
            </span>
                    <?php } ?>
                    <a title="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button_add_small">&nbsp;</a>

                    <?php if ($product['rating']) { ?>
                    <div class="rating"><img src="catalog/view/theme/wenlong/image/stars_<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
                    <?php } ?>
                </td>


            </tr>
            <?php } ?>
        </table>
        <?php } ?>
    </div>
  <div class="bottom">&nbsp;</div>
</div>
